package com.ct.order.repository.front;

import com.ct.order.mapper.OrderDetailMapper;
import com.ct.order.orm.OrderDetail;
import com.ct.repository.commons.BaseServiceImpl;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 订单商品详情 仓库
 *
 * @author system
 */
@Repository
public class FrontOrderDetailRepository extends BaseServiceImpl<OrderDetailMapper, OrderDetail> implements IFrontOrderDetailRepository {

    @Override
    public List<OrderDetail> getListByOrderIds(List<Long> orderIds) {
        return this.lambdaQuery()
                .in(OrderDetail::getOrderId, orderIds)
                .list();
    }
}
